package iut.acy.infoquizz;



import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.support.v4.app.NavUtils;

public class InfoQuizz extends Activity implements OnClickListener{
	
	private Button butJouer;
	private Button butStat;
	private Button butCred;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_info_quizz);
        
        butJouer = (Button)findViewById(R.id.butJouer);
        butStat = (Button)findViewById(R.id.butStat);
        butCred = (Button)findViewById(R.id.butCred);
        
        butJouer.setOnClickListener((OnClickListener)this);
        butStat.setOnClickListener((OnClickListener)this);
        butCred.setOnClickListener((OnClickListener)this);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_info_quizz, menu);
        return true;
    }

	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch(v.getId())
		{
		case R.id.butJouer:
			Intent choixMatiere = new Intent(v.getContext(), ChoixMatiere.class);
            startActivityForResult(choixMatiere, 1);
			break;
		case R.id.butStat:
			
			break;
		case R.id.butCred:
			
			break;
		}
		
	}

    
}
